﻿using System;

namespace Aeon.Framework.Objects.Models
{

/// <summary>
/// Singleton parser class for generic model type.
/// 
/// </summary>
public static class ParserModel<T> where T : IParserModel, new()
    {
    // --- Fields:

    private static T instance;
    public static T Instance
        {
        get {
            if (instance == null) instance = new T();

            return(instance);
            }
        }

    }


}
